Package-level declarations

Types

Link copied to clipboard
data class ApproveDelegationMetadata(val chainId: String, val delegateAmount: String, val delegateAmountRaw: String? = null, val delegateAddress: String, val tokenSymbol: String, val tokenAddress: String? = null, val ownerAddress: String? = null, val tokenAccount: String? = null, val tokenMint: String? = null, val tokenDecimals: Int? = null, val lastValidBlockHeight: String? = null, val serializedTransactionBase64Encoded: String? = null, val serializedTransactionBase58Encoded: String? = null)

Metadata for a delegation approval response.

Link copied to clipboard
data class ApproveDelegationRequest(val chain: String, val token: String, val delegateAddress: String, val amount: String)

Request model for approving a delegation.

Link copied to clipboard
data class ApproveDelegationResponse(val transactions: List<ConstructedEipTransaction>? = null, val encodedTransactions: List<String>? = null, val metadata: ApproveDelegationMetadata? = null)

Response model for a delegation approval.

Link copied to clipboard
data class ConstructedEipTransaction(val from: String, val to: String, val data: String? = null, val value: String? = null)

Represents a constructed EIP-155 transaction returned by delegation endpoints.

Link copied to clipboard
data class DelegationStatus(val address: String, val delegateAmount: String, val delegateAmountRaw: String)

Represents a single delegation entry in a status response.

Link copied to clipboard
data class DelegationStatusResponse(val chainId: String, val token: String, val tokenAddress: String, val tokenAccount: String? = null, val balance: String? = null, val balanceRaw: String? = null, val delegations: List<DelegationStatus>)

Response model for a delegation status query.

Link copied to clipboard
data class GetDelegationStatusRequest(val chain: String, val token: String, val delegateAddress: String)

Request model for querying delegation status.

Link copied to clipboard
data class RevokeDelegationMetadata(val chainId: String, val revokedAddress: String, val tokenSymbol: String, val tokenAddress: String? = null, val ownerAddress: String? = null, val tokenAccount: String? = null)

Metadata for a delegation revocation response.

Link copied to clipboard
data class RevokeDelegationRequest(val chain: String, val token: String, val delegateAddress: String)

Request model for revoking a delegation.

Link copied to clipboard
data class RevokeDelegationResponse(val transactions: List<ConstructedEipTransaction>? = null, val encodedTransactions: List<String>? = null, val metadata: RevokeDelegationMetadata? = null)

Response model for a delegation revocation.

Link copied to clipboard
data class TransferAsDelegateMetadata(val amount: String, val amountRaw: String, val chainId: String, val delegateAddress: String? = null, val lastValidBlockHeight: String? = null, val needsRecipientTokenAccount: Boolean? = null, val ownerAddress: String? = null, val recipientAddress: String? = null, val serializedTransactionBase58Encoded: String? = null, val serializedTransactionBase64Encoded: String? = null, val tokenAddress: String? = null, val tokenSymbol: String? = null, val tokenDecimals: Int? = null)

Metadata for a delegated transfer response.

Link copied to clipboard
data class TransferFromRequest(val chain: String, val token: String, val fromAddress: String, val toAddress: String, val amount: String)

Request model for transferring tokens using delegated authority.

Link copied to clipboard
data class TransferFromResponse(val transactions: List<ConstructedEipTransaction>? = null, val encodedTransactions: List<String>? = null, val metadata: TransferAsDelegateMetadata)

Response model for a delegated transfer.